<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:U('department/index')}">单位管理</a></li>
			<li><a href="{:U('department/add')}">添加单位</a></li>
			<li class="active"><a href="{:U('department/edit', array('id'=>I('request.id/s','')))}">修改单位</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form" action="{:U('Department/edit_post')}">
            <div class="form-group">
                <label  class="col-sm-2 control-label">单位名称</label>
                <div class="col-sm-6">
                    <input type="hidden" name="id" value="{$dept.id}" />
                    <input type="text" class="form-control" name="department_name" placeholder="请输入单位名称" value="{$dept.department_name}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">单位简称</label>
                <div class="col-sm-6">
                    <input type="text" class="form-control" name="department_code" placeholder="请输入单位简称" value="{$dept.department_code}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">单位等级</label>
                <div class="col-sm-6">
                    <input type="hidden" name="role_id" value="{$role.id}" />
                    <select name="department_role" class="form-control">
                        <foreach name="roles" item="vo">
                            <option value="{$vo.id}" <if condition="$vo['id'] eq $dept['department_role']">selected</if>>{$vo.name}</option>
                        </foreach>
                    </select>
                </div>
            </div>

            <div class="form-actions col-md-6 col-md-offset-2">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
                <a class="btn btn-default" href="javascript:history.back(-1);">{:L('BACK')}</a>
            </div>
			
	
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>